# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-comment-parser
_pkgname=comment_parser
pkgver=1.2.5
pkgrel=1
pkgdesc='Parse comments from various source files.'
arch=('any')
url='https://pypi.org/project/comment-parser/#files'
license=('MIT')
depends=('python' 'python-magic')
makedepends=('python-setuptools')
options=(!emptydirs)
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('2e88cfb67ffd72433e5f00779d51d7e4ef7c9862e32988106268f0b21f216b03f073508d9a4512525756edf35db0c879e7b25a710c307775870e63e12e74df02')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

